package net.zhengxinyun.performance.service.news;

import io.swagger.models.auth.In;
import net.zhengxinyun.performance.entity.NewsEntity;
import net.zhengxinyun.performance.filter.NewsFilter;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by hyp1202 on 2018/12/7.
 */
public interface NewsService {
    String insert (NewsEntity newsEntity);

    String delete(NewsEntity newsEntity);

    String update(NewsEntity newsEntity);

    List<NewsFilter> query(NewsFilter filter);

    ArrayList<Map<String,Object>> watchNews(NewsFilter filter);

    Integer queryForCount(NewsFilter filter);

    Integer queryForWatchCount();

    String updateTop(NewsEntity newsEntity);

    NewsEntity queryTop();

    List<NewsFilter> shuffling();
}
